package castleContent;
public class Wizzard extends Unit {

	private static final int DEFAULT_FOOD_COST = 500;
	private static final int WIZZARD_DEFAULT_HP = 3;
	private static final int WIZZARD_DEFAULT_AD = 8;

	public Wizzard() {
		setAttackDamage(WIZZARD_DEFAULT_AD);
		setHealthPoints(WIZZARD_DEFAULT_HP);
		setFoodCost(DEFAULT_FOOD_COST);
	}
	
	
	public Wizzard(int adLevel, int hpLevel) {
		setAdLevel(adLevel);
		setHpLevel(hpLevel);
		setAttackDamage(WIZZARD_DEFAULT_AD);
		setHealthPoints(WIZZARD_DEFAULT_HP);
		setFoodCost(DEFAULT_FOOD_COST);
		
		// Get AD up to level
		for (int currentLevel = 1; currentLevel < getAdLevel(); currentLevel++) {
			upgradeAD();
		}

		// get HP up to level
		for (int currentLevel = 1; currentLevel < getHpLevel(); currentLevel++) {
			upgradeHP();
		}
	}

}
